
 
<% form_for(:test, :url => { :action => "update" }, 
      :html => {:id => "test_form", :class => "frm2", :onsubmit => "saveTest('test_form')"} ) do |f| %>
  <input type="hidden" id="hid_test_id" name="hid_test_id" value="<%= @test.id %>"/>
  <%= f.hidden_field :id %>
    <div id="lab01">
    <label for="test_测试类型">测试类型：
        <select name="test[t_type]">
          <option value="<%=TEST_TYPE_TREND%>"><%=TEST_TYPE_TREND%> </option>
          <option value="<%=TEST_TYPE_MANY_TREND%>"><%=TEST_TYPE_MANY_TREND%> </option>
          <option value="<%=TEST_TYPE_JUMP%>"><%=TEST_TYPE_JUMP%> </option>
          <option value="<%=TEST_TYPE_COUNT%>"><%=TEST_TYPE_COUNT%> </option>
        </select>
      </label>
    </div>
    
    <div id="lab02">
      <%= f.text_field :name%>
    </div>
    <div id="lab03">
      <%= f.text_area :description, :cols => 80, :rows => 7, :class => "text_out1"%>
    </div>
    
  <% end %>

  <input type="button" value="保存" onclick="saveTest('test_form')" class="blueButton"/>


